home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19941221-19950208 / 000303_news@columbia.edu_Wed Jan 25 04:40:36 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  7KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA18733
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sat, 28 Jan 1995 07:51:31 -0500
  3. Received: by apakabar.cc.columbia.edu id AA07395
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sat, 28 Jan 1995 07:51:28 -0500
  5. Path: news.columbia.edu!spcuna!solaris.cc.vt.edu!swiss.ans.net!gatech!swrinde!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
  6. From: jrd@cc.usu.edu (Joe Doupnik)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Need help.
  9. Message-Id: <1995Jan25.104036.39192@cc.usu.edu>
  10. Date: 25 Jan 95 10:40:36 MDT
  11. References: <8j9IFUu00iWP859O8s@andrew.cmu.edu>
  12. Organization: Utah State University
  13. Lines: 137
  14. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <8j9IFUu00iWP859O8s@andrew.cmu.edu>, Mark Kuang Luo <luo+@CMU.EDU> writes:
  17. > Hi:
  18. >     I need to find out for my networks class how Kermit allows all bytes
  19. > to be displayed in 7-bit ASCII format. Is there a FAQ for Kermit, or a
  20. > www page? Or if anyone has a short explanation, it would be appreciated.
  21. -------------
  22.     Far be it from me to do your homework (I'm a Prof too, and my grad 
  23. networks class is slaving away on my IP packet fragment reassembly techniques
  24. without many hints from me).
  25.     Your question is a little mysterious. Kermit does not display all
  26. bytes as ASCII because not all byte values (code points in the jargon)
  27. are displayable (printable in the jargon). Control codes aren't, for example.
  28. Only one character set is ASCII, ASCII itself. Yet Kermit deals with many
  29. different character sets.
  30.     In general, there isn't a way of answering adequately in a News
  31. message, but I'll indicate the tip of the iceberg in a few sentences.
  32. Display devices have one or two display "pages", named Graphics Left
  33. (GLeft) and Graphics Right (GRight). GLeft is without a high bit set
  34. in its code points and is often ASCII; GRight is for code points with
  35. the high bit set and is a variety of character sets. VT100 terminals
  36. have only GLeft and use control codes SO and SI to change to/from (Shift
  37. Out / In, respectively) a replacement character set. VT200 and above
  38. have GLeft and GRight, and they support ISO 2022 control sequences to
  39. map character sets to either GR or GL. ISO 2022 says behind the GR/GL
  40. display pair exists four pages named G0..G3 ready to move into GR/GL
  41. upon command. Commands exist to load G0..G3 with character sets of
  42. choice drawn from a secondary storage of many possible sets.
  43.     If you review cryptic doc msvibm.vt located on kermit.columbia.edu
  44. in directory kermit/a you will see the command sequences to load GR/GL
  45. from G0..G3, to shift in/out, and so on. That's hard to understand without
  46. also reading the ISO 2022 doc, but we can't reproduce the latter item
  47. (copyright, etc). A cutout of some interesting pieces of msvibm.vt are
  48. appended below. If you have access to DEC VT200/300/400 technical manuals
  49. then they have good pictures and discussion of the ISO 2022 mechanisms.
  50.     Joe D.
  51. ---------------
  52.  ESC ( <ident>    SCS        Designates 94 byte character set <ident> to G0
  53.  ESC ) <ident>    SCS        Designates 94 byte character set <ident> to G1
  54.  ESC * <ident>    SCS        Designates 94 byte character set <ident> to G2
  55.  ESC + <ident>    SCS        Designates 94 byte character set <ident> to G3
  56.  ESC - <ident>    SCS        Designates 96 byte character set <ident> to G1
  57.  ESC . <ident>    SCS        Designates 96 byte character set <ident> to G2
  58.  ESC / <ident>    SCS        Designates 96 byte character set <ident> to G3
  59.          <ident>    size    character set
  60.         A     94    UK-ASCII (ASCII, sharp sign 2/3 replaced by
  61.                  Sterling sign), strictly only when a VT102
  62.                  but permitted by Kermit also for VT220/VT320
  63.         A     96    ISO Latin-1 (default in G2, G3)
  64.         B     94    ASCII (default in G0, G1)
  65.         0     94    DEC Special Graphics (line drawing)
  66.         1     94/96    Kermit, ALT-ROM
  67.         2     94    DEC Special Graphics (line drawing)
  68.         %5     94    DEC Supplemental Graphics
  69.         <     94/96    User Preferred Supplemental Set*
  70.         >     94    DEC Technical set (from VT340's)
  71.         H     96    Hebrew-ISO (ISO 8859-8)
  72.         "4     94    Hebrew-7
  73.  * VT300 terminals give choice of ISO Latin-1 (96) or DEC Supplemental
  74.  
  75. Graphics (94) determined by a Setup menu selection or host command.  VT420
  76. Hebrew terminals add choices of Hebrew-ISO and Hebrew-7.  MS-DOS Kermit has
  77. DEC Supplemental Graphics as the startup UPSS character set.
  78.  
  79. If the size of the character set does not match the <ident> nothing happens.
  80. Startup defaults are ASCII in G0 and G1, ISO Latin-1 in G2 and G3, GL points
  81. to G0, GR points to G2.  Activating DEC National Replacement Characters maps
  82. the NRC set selected by SET TERMINAL CHARACTER-SET <country> into G0..G3.
  83. Single and Locking shifts, SS2, SS3, LS0 (SI), LS1 (SO), LS1R, LS2, LS2R, LS3,
  84. LS3R determine which set is mapped to the GLeft or GRight area.
  85.  
  86.  
  87.  ESC n        LS2        Map character set in G2 to GL, locking shift
  88.  ESC o        LS3        Map character set in G3 to GL, locking shift
  89.  ESC |        LS3R        Map character set in G3 to GR, locking shift
  90.  ESC }        LS2R        Map character set in G2 to GR, locking shift
  91.  ESC ~        LS1R        Map character set in G1 to GR, locking shift
  92.  
  93. Control Codes in C0 (no high bit) Area:
  94.  
  95.  Name    ASCII    value
  96.      chart      hex keyboard            operation
  97.  SO/LS1    0/14    0eh   ^N    Map character set in G1 to GL, locking shift
  98.  SI/LS0    0/15    0fh   ^O    Map character set in G0 to GL, locking shift
  99.  
  100. Control codes in C1 (high bit set) Area:
  101.  
  102.  Name    ASCII    value
  103.      chart   8-bit 7-bit        operation
  104.  SS2    8/14      8eh   ESC N    Map G2 to GL for next char only, single shift
  105.  SS3    8/15      8fh   ESC O    Map G3 to GL for next char only, single shift
  106.  
  107.  
  108.  Character sets:
  109.  
  110.  VT320        Character set storage areas
  111.         G0            G1, G2, and G3
  112.  -------------------------------    --------------------------------
  113.  Any 94 char set            Any 94 or 96 char set
  114.  ASCII ("B"/94) default         G1 default is ASCII ("B"/94),
  115.                     G2 and G3 defaults are
  116.                          ISO Latin-1 ("A"/96)
  117.  Special Graphics ("0"/94, "2"/94)    
  118.  Alt-Rom ("1"/94) (MS-DOS Kermit only)
  119.  Supplementary Graphics ("%5"/94)
  120.  Technical (">"/94) (from VT340)
  121.  User Preferred, UPSS, if Suppl Gr.    UPSS if ISO Latin-1 or Suppl Gr.
  122.                      DEC-Hebrew or Hebrew-ISO
  123.  
  124.  National Replacement Characters are forced into all sets when activated
  125.   by CSI ? 42 h but only if a <country> has been previously selected by
  126.   SET TERMINAL CHARACTER-SET <country>
  127.  
  128.  VT102        Character set storage areas
  129.     G0 and G1            G2 and G3
  130.  --------------------------------    ----------------------------------
  131.  ASCII ("B"/94) Default            ASCII ("B"/94) Default
  132.  Special Graphics ("0"/94, "2"/94)
  133.  Alt-Rom ("1"/94) (MS Kermit only)
  134.  Supplementary Graphics ("%5"/94)
  135.  Technical (">"/94) (from VT340)
  136.  National Replacement Characters    Always ASCII ("B"/94)
  137.   are selected and activated by
  138.   SET TERMINAL CHARACTER-SET <country>
  139.   and affect only G0 and G1.
  140.  
  141.  
  142.  Request  CSI ? 26 n        keyboard dialect
  143.  Response CSI ? 27; Ps n    in MS Kermit this is controlled by
  144.                 command SET TERMINAL CHARACTER-SET <country>
  145.         Ps    Country            Ps    Country
  146.         1    North American/ASCII    9    Italian
  147.         2    British            13    Norwegian/Danish
  148.         8    Dutch            16    Portugese
  149.         6    Finnish            15    Spanish
  150.         14    French            12    Swedish
  151.         4    French Canadian        11    Swiss (German)
  152.         7    German            14      Hebrew